let http = require('http')
let url = require('url')
let server = http.createServer((req,res) => {
  console.log(url.parse(req.url))
  res.end(req.url.toString())
})

server.listen(3000,() => {
  console.log('server running')
})
